<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: soe_request.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('soe__request_8c_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">soe_request.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="soe__request_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  $Id: soe_request.c,v ec403cf308eb 2013/02/12 14:46:43 fp $</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  This file is part of the IgH EtherCAT Master.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  modify it under the terms of the GNU General Public License version 2, as</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  published by the Free Software Foundation.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *  Public License for more details.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *  You should have received a copy of the GNU General Public License along</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *  with the IgH EtherCAT Master; if not, write to the Free Software</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  ---</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  The license mentioned above concerns the source code only. Using the</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  EtherCAT technology and brand is only permitted in compliance with the</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  industrial property and similar rights of Beckhoff Automation GmbH.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *****************************************************************************/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;linux/module.h&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;linux/jiffies.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;linux/slab.h&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="soe__request_8h.html">soe_request.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="soe__request_8c.html#a4a6708f336ebb21896abbd6b9c272ec2">   46</a></span>&#160;<span class="preprocessor">#define EC_SOE_REQUEST_RESPONSE_TIMEOUT 1000</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#a061dca3585d23f3b16ca46a90b53b9de">ec_soe_request_clear_data</a>(<a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a153a97cf0b6f06a25566bced679a548f">   56</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#ac48c2c807e1193b309dc20b08db88af1">ec_soe_request_init</a>(</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        )</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;{</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    INIT_LIST_HEAD(&amp;req-&gt;<a class="code" href="structec__soe__request__t.html#a07cafa8f400f95ced4f6037629c979f6">list</a>);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a041ffd0bc617403520b352bcb347a6b5">drive_no</a> = 0x00;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a04792e875a94787c20bb370e65b584b7">idn</a> = 0x0000;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#aa421217a4fc552dc2411b07010a4520a">al_state</a> = <a class="code" href="group__ApplicationInterface.html#gga18c064146090e45d36c05876c546caeaa1e8639024a180fdc380559b8f7a02b4f">EC_AL_STATE_INIT</a>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a> = NULL;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">mem_size</a> = 0;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a> = 0;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#ad9788973a47b9b82bac17e527eb6d7a6">dir</a> = <a class="code" href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a1d65420e76eb63b731b1148054c40054">EC_DIR_INVALID</a>;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#ad019a8fb7fd83ffc0744713d0247b217">state</a> = EC_INT_REQUEST_INIT;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#acb9e954735012f3e149bdd207afbc3a7">jiffies_sent</a> = 0U;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a9fe2cb324e505e6e0123e310dcbc4dcc">error_code</a> = 0x0000;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;}</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a62db42f000afec347cb9abeef113e06c">   77</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#af363b99bdce32c73c89bcec7520b5d01">ec_soe_request_clear</a>(</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req </div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        )</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;{</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <a class="code" href="soe__request_8c.html#a061dca3585d23f3b16ca46a90b53b9de">ec_soe_request_clear_data</a>(req);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="soe__request_8h.html#af86daad102b4c9882a1efa9a586c601b">   90</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="soe__request_8c.html#a0aed2b2f97cf1436f7f778ccfb8c5553">ec_soe_request_copy</a>(</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, </div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keyword">const</span> <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *other </div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        )</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;{</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a041ffd0bc617403520b352bcb347a6b5">drive_no</a> = other-&gt;<a class="code" href="structec__soe__request__t.html#a041ffd0bc617403520b352bcb347a6b5">drive_no</a>;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a04792e875a94787c20bb370e65b584b7">idn</a> = other-&gt;<a class="code" href="structec__soe__request__t.html#a04792e875a94787c20bb370e65b584b7">idn</a>;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#aa421217a4fc552dc2411b07010a4520a">al_state</a> = other-&gt;<a class="code" href="structec__soe__request__t.html#aa421217a4fc552dc2411b07010a4520a">al_state</a>;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="soe__request_8c.html#a814c93a03b31ee5cc53ea6eec96a1bbc">ec_soe_request_copy_data</a>(req, other-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a>, other-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a>);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a31de21e8095a24e03eb4a5e5662f7d66">  105</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#a33b01e254978df8b620d4dccc1d42569">ec_soe_request_set_drive_no</a>(</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, </div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        uint8_t drive_no </div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        )</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;{</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a041ffd0bc617403520b352bcb347a6b5">drive_no</a> = drive_no;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;}</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a4779a40d4914431cfe445423ae85ff31">  117</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#a1433bb1213a1ae25b9f9e5fdd9002668">ec_soe_request_set_idn</a>(</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, </div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        uint16_t idn </div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        )</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;{</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a04792e875a94787c20bb370e65b584b7">idn</a> = idn;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;}</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="soe__request_8c.html#a061dca3585d23f3b16ca46a90b53b9de">  129</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#a061dca3585d23f3b16ca46a90b53b9de">ec_soe_request_clear_data</a>(</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req </div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        )</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;{</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordflow">if</span> (req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a>) {</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        kfree(req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a>);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a> = NULL;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">mem_size</a> = 0;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a> = 0;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a56a1ad50edce8aa012dc5e14fa395e33">  150</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="soe__request_8c.html#aebb7a81aa9fea2e882edce1bb4ccc8b6">ec_soe_request_alloc</a>(</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, </div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="keywordtype">size_t</span> size </div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        )</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;{</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span> (size &lt;= req-&gt;mem_size)</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <a class="code" href="soe__request_8c.html#a061dca3585d23f3b16ca46a90b53b9de">ec_soe_request_clear_data</a>(req);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordflow">if</span> (!(req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a> = (uint8_t *) kmalloc(size, GFP_KERNEL))) {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <a class="code" href="globals_8h.html#aed23297031f2f23bb5d005bb586790cf">EC_ERR</a>(<span class="stringliteral">&quot;Failed to allocate %zu bytes of SoE memory.\n&quot;</span>, size);</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keywordflow">return</span> -ENOMEM;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    }</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">mem_size</a> = size;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a> = 0;</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;}</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a95c77d9ede649345d55f6e1dacf65cb3">  179</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="soe__request_8c.html#a814c93a03b31ee5cc53ea6eec96a1bbc">ec_soe_request_copy_data</a>(</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, </div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keyword">const</span> uint8_t *source, </div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keywordtype">size_t</span> size </div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        )</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;{</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordtype">int</span> ret = <a class="code" href="soe__request_8c.html#aebb7a81aa9fea2e882edce1bb4ccc8b6">ec_soe_request_alloc</a>(req, size);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0)</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    memcpy(req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a>, source, size);</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a> = size;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;}</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a436096a029ec15737fa4a363247d037a">  203</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="soe__request_8c.html#a8a925ba4a167337f982e2af3cc94fe5b">ec_soe_request_append_data</a>(</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, </div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <span class="keyword">const</span> uint8_t *source, </div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        <span class="keywordtype">size_t</span> size </div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        )</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;{</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordflow">if</span> (req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a> + size &gt; req-&gt;<a class="code" href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">mem_size</a>) {</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keywordtype">size_t</span> new_size = req-&gt;<a class="code" href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">mem_size</a> ? req-&gt;<a class="code" href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">mem_size</a> * 2 : size;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        uint8_t *new_data = (uint8_t *) kmalloc(new_size, GFP_KERNEL);</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keywordflow">if</span> (!new_data) {</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            <a class="code" href="globals_8h.html#aed23297031f2f23bb5d005bb586790cf">EC_ERR</a>(<span class="stringliteral">&quot;Failed to allocate %zu bytes of SoE memory.\n&quot;</span>,</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                    new_size);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;            <span class="keywordflow">return</span> -ENOMEM;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        }</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        memcpy(new_data, req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a>, req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a>);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        kfree(req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a>);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a> = new_data;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        req-&gt;<a class="code" href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">mem_size</a> = new_size;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    }</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    memcpy(req-&gt;<a class="code" href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">data</a> + req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a>, source, size);</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">data_size</a> += size;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;}</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a68954a5a60ba8dc64abb442be9481e67">  232</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#a9eef801a2dec94ecd2ea20fa3b9bb3c2">ec_soe_request_read</a>(</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req </div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;       )</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;{</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#ad9788973a47b9b82bac17e527eb6d7a6">dir</a> = <a class="code" href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a6b3c6b53010076d846724fec434512e4">EC_DIR_INPUT</a>;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#ad019a8fb7fd83ffc0744713d0247b217">state</a> = EC_INT_REQUEST_QUEUED;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a9fe2cb324e505e6e0123e310dcbc4dcc">error_code</a> = 0x0000;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;}</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="soe__request_8h.html#a3aaef8f08907e15aad18c6b72995fec9">  245</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="soe__request_8c.html#a02f5e4b5047b8722d5df2096860807bb">ec_soe_request_write</a>(</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <a class="code" href="structec__soe__request__t.html">ec_soe_request_t</a> *req </div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        )</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;{</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#ad9788973a47b9b82bac17e527eb6d7a6">dir</a> = <a class="code" href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1aebf26f1d5c09cf002af5b09d9cb59b78">EC_DIR_OUTPUT</a>;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#ad019a8fb7fd83ffc0744713d0247b217">state</a> = EC_INT_REQUEST_QUEUED;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    req-&gt;<a class="code" href="structec__soe__request__t.html#a9fe2cb324e505e6e0123e310dcbc4dcc">error_code</a> = 0x0000;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;}</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="ttc" id="structec__soe__request__t_html_acb9e954735012f3e149bdd207afbc3a7"><div class="ttname"><a href="structec__soe__request__t.html#acb9e954735012f3e149bdd207afbc3a7">ec_soe_request_t::jiffies_sent</a></div><div class="ttdeci">unsigned long jiffies_sent</div><div class="ttdoc">Jiffies, when the upload/download request was sent. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00059">soe_request.h:59</a></div></div>
<div class="ttc" id="soe__request_8c_html_a1433bb1213a1ae25b9f9e5fdd9002668"><div class="ttname"><a href="soe__request_8c.html#a1433bb1213a1ae25b9f9e5fdd9002668">ec_soe_request_set_idn</a></div><div class="ttdeci">void ec_soe_request_set_idn(ec_soe_request_t *req, uint16_t idn)</div><div class="ttdoc">Set IDN. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00117">soe_request.c:117</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_a50146c3d308515d01b221f17b528f2f7"><div class="ttname"><a href="structec__soe__request__t.html#a50146c3d308515d01b221f17b528f2f7">ec_soe_request_t::data</a></div><div class="ttdeci">uint8_t * data</div><div class="ttdoc">Pointer to SDO data. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00053">soe_request.h:53</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_a07cafa8f400f95ced4f6037629c979f6"><div class="ttname"><a href="structec__soe__request__t.html#a07cafa8f400f95ced4f6037629c979f6">ec_soe_request_t::list</a></div><div class="ttdeci">struct list_head list</div><div class="ttdoc">List item. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00049">soe_request.h:49</a></div></div>
<div class="ttc" id="soe__request_8c_html_a9eef801a2dec94ecd2ea20fa3b9bb3c2"><div class="ttname"><a href="soe__request_8c.html#a9eef801a2dec94ecd2ea20fa3b9bb3c2">ec_soe_request_read</a></div><div class="ttdeci">void ec_soe_request_read(ec_soe_request_t *req)</div><div class="ttdoc">Request a read operation. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00232">soe_request.c:232</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_ad019a8fb7fd83ffc0744713d0247b217"><div class="ttname"><a href="structec__soe__request__t.html#ad019a8fb7fd83ffc0744713d0247b217">ec_soe_request_t::state</a></div><div class="ttdeci">ec_internal_request_state_t state</div><div class="ttdoc">Request state. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00058">soe_request.h:58</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_a9fe2cb324e505e6e0123e310dcbc4dcc"><div class="ttname"><a href="structec__soe__request__t.html#a9fe2cb324e505e6e0123e310dcbc4dcc">ec_soe_request_t::error_code</a></div><div class="ttdeci">uint16_t error_code</div><div class="ttdoc">SoE error code. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00061">soe_request.h:61</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_a041ffd0bc617403520b352bcb347a6b5"><div class="ttname"><a href="structec__soe__request__t.html#a041ffd0bc617403520b352bcb347a6b5">ec_soe_request_t::drive_no</a></div><div class="ttdeci">uint8_t drive_no</div><div class="ttdoc">Drive number. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00050">soe_request.h:50</a></div></div>
<div class="ttc" id="soe__request_8c_html_a814c93a03b31ee5cc53ea6eec96a1bbc"><div class="ttname"><a href="soe__request_8c.html#a814c93a03b31ee5cc53ea6eec96a1bbc">ec_soe_request_copy_data</a></div><div class="ttdeci">int ec_soe_request_copy_data(ec_soe_request_t *req, const uint8_t *source, size_t size)</div><div class="ttdoc">Copies SoE data from an external source. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00179">soe_request.c:179</a></div></div>
<div class="ttc" id="soe__request_8c_html_a33b01e254978df8b620d4dccc1d42569"><div class="ttname"><a href="soe__request_8c.html#a33b01e254978df8b620d4dccc1d42569">ec_soe_request_set_drive_no</a></div><div class="ttdeci">void ec_soe_request_set_drive_no(ec_soe_request_t *req, uint8_t drive_no)</div><div class="ttdoc">Set drive number. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00105">soe_request.c:105</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_afb47843a1a15d493b35615bc5a65ca18"><div class="ttname"><a href="structec__soe__request__t.html#afb47843a1a15d493b35615bc5a65ca18">ec_soe_request_t::data_size</a></div><div class="ttdeci">size_t data_size</div><div class="ttdoc">Size of SDO data. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00055">soe_request.h:55</a></div></div>
<div class="ttc" id="soe__request_8c_html_af363b99bdce32c73c89bcec7520b5d01"><div class="ttname"><a href="soe__request_8c.html#af363b99bdce32c73c89bcec7520b5d01">ec_soe_request_clear</a></div><div class="ttdeci">void ec_soe_request_clear(ec_soe_request_t *req)</div><div class="ttdoc">SoE request destructor. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00077">soe_request.c:77</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_ad9788973a47b9b82bac17e527eb6d7a6"><div class="ttname"><a href="structec__soe__request__t.html#ad9788973a47b9b82bac17e527eb6d7a6">ec_soe_request_t::dir</a></div><div class="ttdeci">ec_direction_t dir</div><div class="ttdoc">Direction. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00056">soe_request.h:56</a></div></div>
<div class="ttc" id="soe__request_8c_html_a061dca3585d23f3b16ca46a90b53b9de"><div class="ttname"><a href="soe__request_8c.html#a061dca3585d23f3b16ca46a90b53b9de">ec_soe_request_clear_data</a></div><div class="ttdeci">void ec_soe_request_clear_data(ec_soe_request_t *)</div><div class="ttdoc">Free allocated memory. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00129">soe_request.c:129</a></div></div>
<div class="ttc" id="group__ApplicationInterface_html_gga703c4e47384b3601e7605d6d910aaba1a6b3c6b53010076d846724fec434512e4"><div class="ttname"><a href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a6b3c6b53010076d846724fec434512e4">EC_DIR_INPUT</a></div><div class="ttdoc">Values read by the master. </div><div class="ttdef"><b>Definition:</b> <a href="ecrt_8h_source.html#l00420">ecrt.h:420</a></div></div>
<div class="ttc" id="soe__request_8c_html_a8a925ba4a167337f982e2af3cc94fe5b"><div class="ttname"><a href="soe__request_8c.html#a8a925ba4a167337f982e2af3cc94fe5b">ec_soe_request_append_data</a></div><div class="ttdeci">int ec_soe_request_append_data(ec_soe_request_t *req, const uint8_t *source, size_t size)</div><div class="ttdoc">Copies SoE data from an external source. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00203">soe_request.c:203</a></div></div>
<div class="ttc" id="soe__request_8c_html_aebb7a81aa9fea2e882edce1bb4ccc8b6"><div class="ttname"><a href="soe__request_8c.html#aebb7a81aa9fea2e882edce1bb4ccc8b6">ec_soe_request_alloc</a></div><div class="ttdeci">int ec_soe_request_alloc(ec_soe_request_t *req, size_t size)</div><div class="ttdoc">Pre-allocates the data memory. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00150">soe_request.c:150</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_aa421217a4fc552dc2411b07010a4520a"><div class="ttname"><a href="structec__soe__request__t.html#aa421217a4fc552dc2411b07010a4520a">ec_soe_request_t::al_state</a></div><div class="ttdeci">ec_al_state_t al_state</div><div class="ttdoc">AL state (only valid for IDN config). </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00052">soe_request.h:52</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_af259cf93b71c67824d7ca728b27a5776"><div class="ttname"><a href="structec__soe__request__t.html#af259cf93b71c67824d7ca728b27a5776">ec_soe_request_t::mem_size</a></div><div class="ttdeci">size_t mem_size</div><div class="ttdoc">Size of SDO data memory. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00054">soe_request.h:54</a></div></div>
<div class="ttc" id="group__ApplicationInterface_html_gga703c4e47384b3601e7605d6d910aaba1a1d65420e76eb63b731b1148054c40054"><div class="ttname"><a href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a1d65420e76eb63b731b1148054c40054">EC_DIR_INVALID</a></div><div class="ttdoc">Invalid direction. </div><div class="ttdef"><b>Definition:</b> <a href="ecrt_8h_source.html#l00418">ecrt.h:418</a></div></div>
<div class="ttc" id="globals_8h_html_aed23297031f2f23bb5d005bb586790cf"><div class="ttname"><a href="globals_8h.html#aed23297031f2f23bb5d005bb586790cf">EC_ERR</a></div><div class="ttdeci">#define EC_ERR(fmt, args...)</div><div class="ttdoc">Convenience macro for printing EtherCAT-specific errors to syslog. </div><div class="ttdef"><b>Definition:</b> <a href="globals_8h_source.html#l00227">globals.h:227</a></div></div>
<div class="ttc" id="soe__request_8h_html"><div class="ttname"><a href="soe__request_8h.html">soe_request.h</a></div><div class="ttdoc">EtherCAT SoE request structure. </div></div>
<div class="ttc" id="soe__request_8c_html_a02f5e4b5047b8722d5df2096860807bb"><div class="ttname"><a href="soe__request_8c.html#a02f5e4b5047b8722d5df2096860807bb">ec_soe_request_write</a></div><div class="ttdeci">void ec_soe_request_write(ec_soe_request_t *req)</div><div class="ttdoc">Request a write operation. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00245">soe_request.c:245</a></div></div>
<div class="ttc" id="soe__request_8c_html_ac48c2c807e1193b309dc20b08db88af1"><div class="ttname"><a href="soe__request_8c.html#ac48c2c807e1193b309dc20b08db88af1">ec_soe_request_init</a></div><div class="ttdeci">void ec_soe_request_init(ec_soe_request_t *req)</div><div class="ttdoc">SoE request constructor. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00056">soe_request.c:56</a></div></div>
<div class="ttc" id="structec__soe__request__t_html_a04792e875a94787c20bb370e65b584b7"><div class="ttname"><a href="structec__soe__request__t.html#a04792e875a94787c20bb370e65b584b7">ec_soe_request_t::idn</a></div><div class="ttdeci">uint16_t idn</div><div class="ttdoc">Sercos ID-Number. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00051">soe_request.h:51</a></div></div>
<div class="ttc" id="group__ApplicationInterface_html_gga703c4e47384b3601e7605d6d910aaba1aebf26f1d5c09cf002af5b09d9cb59b78"><div class="ttname"><a href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1aebf26f1d5c09cf002af5b09d9cb59b78">EC_DIR_OUTPUT</a></div><div class="ttdoc">Values written by the master. </div><div class="ttdef"><b>Definition:</b> <a href="ecrt_8h_source.html#l00419">ecrt.h:419</a></div></div>
<div class="ttc" id="group__ApplicationInterface_html_gga18c064146090e45d36c05876c546caeaa1e8639024a180fdc380559b8f7a02b4f"><div class="ttname"><a href="group__ApplicationInterface.html#gga18c064146090e45d36c05876c546caeaa1e8639024a180fdc380559b8f7a02b4f">EC_AL_STATE_INIT</a></div><div class="ttdoc">Init. </div><div class="ttdef"><b>Definition:</b> <a href="ecrt_8h_source.html#l00529">ecrt.h:529</a></div></div>
<div class="ttc" id="soe__request_8c_html_a0aed2b2f97cf1436f7f778ccfb8c5553"><div class="ttname"><a href="soe__request_8c.html#a0aed2b2f97cf1436f7f778ccfb8c5553">ec_soe_request_copy</a></div><div class="ttdeci">int ec_soe_request_copy(ec_soe_request_t *req, const ec_soe_request_t *other)</div><div class="ttdoc">Copy another SoE request. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8c_source.html#l00090">soe_request.c:90</a></div></div>
<div class="ttc" id="structec__soe__request__t_html"><div class="ttname"><a href="structec__soe__request__t.html">ec_soe_request_t</a></div><div class="ttdoc">Sercos-over-EtherCAT request. </div><div class="ttdef"><b>Definition:</b> <a href="soe__request_8h_source.html#l00048">soe_request.h:48</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="soe__request_8c.html">soe_request.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
